package com.shop.service;

import com.shop.dao.classify.ClassifyDao;
import com.shop.entity.classify.Classify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.annotation.RequestScope;

import java.util.List;

@RestController
@RequestScope
public class ClassifyServiceRest {
    @Autowired
    ClassifyDao classifyDao;
    @RequestMapping("queryAllClassify")
    public List<Classify> queryAllClassify(){
        return classifyDao.queryAll(new Classify());
    }
}
